<template>
	<view>
		<view class="" @click="test">子组件，点此发送消息给父组件</view>
	</view>
</template>

<script>
	export default {
		name:"emit-test",
		data() {
			return {
				
			};
		},
		methods: {
			// 搜索
			test() {
				// this.$emit('test', {msg: '子组件的消息'})
				this.$emit('test', '子组件的字符串')
			},
		}
	}
</script>

<style>

</style>